<template>
	<view class="studentFile">
		<view v-if="meetingList.length" class="listBox">
			<view class="listitem" v-for="(item,index) in meetingList" @click="handleMeettingdetail(item)">
				<view class="topBox">
					<image src="../../static/image/iconfool.png" style="width: 48rpx;height: 48rpx;" mode=""></image>
					<view class="" style="margin-left: 20rpx;">
						会议纪要
					</view>
				</view>
				<view class="content">
					<view class="contenttop">
						<view class="lable" style="width: 50%;text-align:center;">
							会议时间
						</view>
						<view class="lable" style="width: 50%;text-align:center;">
							会议参加人
						</view>
						<!-- <view class="lable">
							下次会议时间
						</view> -->

					</view>
					<view class="contentBottom">
						<view class="value" style="width: 50%;text-align:center;">
							{{item.strart_time}}
						</view>
						<view class="value" style="width: 50%;text-align:center;">
							<view class="" v-for="(subitem,subindex) in item.member">
								{{subitem.name}}
							</view>
							<view class="" v-for="(subitem,subindex) in item.parent">
								{{subitem.name}}
							</view>
							<view class="" v-for="(subitem,subindex) in item.consultant">
								{{subitem.name}}
							</view>
						</view>
						<!-- <view class="value">
							{{item.meeting_plays}}
						</view> -->

					</view>

				</view>
				<view class="heng"></view>
				<view class="footerBox">
					<view class="">
						查看详情
					</view>
					<u-icon name="arrow-right-double" color="#CCCCCC" size="20"></u-icon>

				</view>


			</view>

		</view>

		<view v-else class="nullBox">
			<image src="../../static/image/nullimg.png" mode="" style="width: 146rpx;height: 146rpx;"></image>
			<view class="">
				暂无会议纪要
			</view>
		</view>

	</view>
</template>

<script>
	import {
		meetingList
	} from "@/api/api.js"
	export default {
		data() {
			return {
				pageId: "",
				meetingList: [],
			}
		},
		onLoad(options) {
			this.pageId = options.id
			this.handlemeetingList()
		},
		onPullDownRefresh() {
			// console.log("触发了下拉刷新"),
			this.handlemeetingList()
			uni.stopPullDownRefresh();
		},
		methods: {
			async handlemeetingList() {
				let res = await meetingList({
					page: 1,
					page_size: 10,
					type: 2,
					id: this.pageId
				})
				this.meetingList = res.data.data
				// console.log("会议列表", this.meetingList)
			},
			handleMeettingdetail(item) {
				uni.navigateTo({
					url: `./mettingDetail?id=${item.id}`
				})
			},
		}
	}
</script>

<style scoped lang="scss">
	.nullBox {
		width: 170rpx;
		text-align: center;
		font-size: 28rpx;
		font-family: PingFang SC, PingFang SC;
		font-weight: 400;
		color: #9E9E9E;
		line-height: 36rpx;
		margin: 0 auto;
		margin-top: 100rpx;
	}

	.studentFile {
		padding: 30rpx;
		box-sizing: border-box;

		.listBox {
			.listitem {
				width: 690rpx;
				// height: 354rpx;
				background: #FFFFFF;
				border-radius: 16rpx 16rpx 16rpx 16rpx;
				margin-bottom: 30rpx;

				.topBox {
					width: 690rpx;
					height: 92rpx;
					background: #E1E8FD;
					border-radius: 16rpx 16rpx 0 0;
					padding: 22rpx 20rpx;
					box-sizing: border-box;
					display: flex;
					align-items: center;
					font-size: 32rpx;
					font-family: PingFang SC, PingFang SC;
					font-weight: 500;
					color: #255A9B;
					line-height: 32rpx;
				}

				.content {
					padding: 30rpx;
					box-sizing: border-box;

					.contenttop {
						display: flex;
						text-align: center;

						.lable {
							width: 33.33%;
							font-size: 28rpx;
							font-family: PingFang SC, PingFang SC;
							font-weight: 400;
							color: #232832;
							line-height: 36rpx;
						}

					}

					.contentBottom {
						display: flex;
						align-items: center;
						margin-top: 30rpx;

						.value {
							font-size: 28rpx;
							font-family: PingFang SC, PingFang SC;
							font-weight: 400;
							color: #9E9E9E;
							line-height: 36rpx;
							width: 33.33%;
							text-align: center;
						}
					}
				}

				.heng {
					width: 650rpx;
					height: 1rpx;
					background-color: #F4F4F7;
					margin: 0 auto;
				}

				.footerBox {
					padding: 30rpx 60rpx;
					box-sizing: border-box;
					display: flex;
					align-items: center;
					justify-content: space-between;
					font-size: 28rpx;
					font-family: PingFang SC, PingFang SC;
					font-weight: 400;
					color: #CCCCCC;
					line-height: 28rpx;
				}

			}
		}

	}
</style>